

/**View父级层级名称 */
export enum ViewLayer{
    /**场景玩法根节点 */
    Layer_Scene = "layer_scene",
    /**hud层 */
    Layer_Hud = "layer_hud",
    /**hud上特效层,低于其他ui */
    Layer_Hud_Effect = "layer_hud_effect",
    /**正常ui层,大部分都在这个层 */
    Layer_Normal = "layer_normal",
    /**弹窗层 */
    Layer_MsgBox = "layer_msg_box",
    /**全屏特效层 */
    Layer_Effect = "layer_effect",
    /**引导层 */
    Layer_Guide = "layer_guide",
    /**最顶层 */
    Layer_Top = "layer_top",
}

/**View父级层级优先级（数组先后顺序决定） */
export const ViewLayerSort = [
    ViewLayer.Layer_Scene,
    ViewLayer.Layer_Hud,
    ViewLayer.Layer_Hud_Effect,
    ViewLayer.Layer_Normal,
    ViewLayer.Layer_MsgBox,
    ViewLayer.Layer_Effect,
    ViewLayer.Layer_Guide,
    ViewLayer.Layer_Top
]

export enum ViewMode {
    /**唯一 */
    SINGLE = 1,
    /**多个 */
    MULTI = 2
}

/**返回键关闭按钮检查状态 */
export enum ViewBackState{
    /**可以关闭 */
    Close = 0,
    /**跳过,往下查找 */
    Pass = 1,
    /**停止,不可关闭 */
    Return = 2,
    /**停止,并弹出退出游戏提示框 */
    ShowExitGame = 3,
}